package com.kaisu.blog.domain.file.repository;


import com.kaisu.blog.domain.file.File;

import java.io.InputStream;

/**
 * @author kaisu
 */
public interface FileRepository {
    /**
     * upload file
     *
     * @param fileStream stream
     * @param file       file
     */
    void upload(InputStream fileStream, File file);

    /**
     * find by file id
     *
     * @param id id
     * @return file
     */
    File findById(String id);
}
